home *** CD-ROM | disk | FTP | other *** search
- DefineVariables
- ;;********************************************************************
- ;; Install of Virtual Sex software for windows
- ;;********************************************************************
-
-
- Text [CompanyName] := VCA Interactive
- Text [ProductName] := Virtual Sex
- Text [ProductName1] := Install QuickTime 2.0
- Text [ProductName2] := Uninstall QuickTime 2.0
- Text [TopLine] := " INSTALLING [ProductName] "
-
- Text [ExpressSetupDescription] := Install Virtual Sex
-
-
- Text [LogoBitMap] := VCA.BMP
- Text [ReadFile] := VCAREAD.WRI
- Text [ReadCmdLine] := write.exe
- Text [ReadPath]
- Text [IconFile] := VCA.ICO
- Text [IconPath]
- Text [ProgFile] := VIRTUAL.EXE
- Text [ProgPath]
- Text [ProgFile1] := SETUP.EXE
- Text [ProgPath1]
- Text [ProgFile2] := UNQTW.EXE
- Text [ProgPath2]
-
- EndDefineVariables
- Procedure DDENonFatalErrorTrap
-
-
- ;; Purpose of DDENonFatalErrorTrap:
- ;; If a procedure with this name is present in the script and a non-fatal
- ;; Program Manager DDE error occurs, then this procedure will be executed.
- ;;
- ;; Possible Text Error Codes Are:
- ;; ddeExec%s failed (NOTE: the "%s" is replaced by error types)
- ;; ddeInitiate failed
- ;; pmAddItem failed
- ;; pmClose failed
- ;; pmCreateGroup failed
- ;;
- ;; To trap a DDENonFatalError and respond to it, use the following code
- ;; [Number1] := PositionOf "PMAddItem" in DDENonFatalError
- ;; If [Number1] > 0
- ;; Dialog
- ;; NonFatal error in AddItem occurred
- ;; Error Text : DDENonFatalError
- ;; EndDialog
- EndProcedure
-
-
-
- ;; Setup logo and screen
- SetDefaultBitmap off
- LoadBitMap 1 [LogoBitMap]
- ShowBitMap 1 @xy(420,320)
- SetBackgroundColor 0 0 255 0 0 64 TopToBottom
- ShowWindow Maximized
-
-
- Dialog
-
- Installation of "[ProductName]" is completely non-invasive.
- A new icon and/or program group, "[CompanyName]", will be
- created in your program manager.
-
- Please press "OK" to proceed with "[ProductName]" installation.
-
- EndDialog
-
- Dialog WhiteOnBlue
-
- **********************WARNING**********************
-
- QuickTime ver. 1.0 and ver. 2.0 are incompatible.
- For your convenience you may install or un-install
- QuickTime ver. 2.0 from the "VCA Interactive" Program Group.
-
- Please press "OK" to proceed with "[ProductName]" installation.
-
- EndDialog
-
- CreateDirectoryIfNecessary C:\VCA
-
- If FileExists C:\VCA\UNQTW.EXE
- SetFileAttrTo 00 for c:\VCA\UNQTW.EXE
- SetFileAttrTo 00 for c:\VCA\UNQTW.INF
- SetFileAttrTo 00 for c:\VCA\VCA.BMP
- EndIf
-
- SetCopyAttrTo 00
- CopyFiles from [InstallFromDrive]:\PC to C:\VCA quietly
- UNQTW.EX_ as UNQTW.EXE
- UNQTW.IN_ as UNQTW.INF
- VCA.BMP
- EndCopyFiles
-
-
-
- ;;**************************************************
- ;;Find the files for the program and icons
- ;;**************************************************
- [IconPath] := FullPathTo [IconFile] Search AllFixed Quietly
- [ProgPath] := FullPathTo [ProgFile] Search AllFixed Quietly
- [ReadPath] := FullPathTo [ReadFile] Search AllFixed Quietly
- [ProgPath1] := FullPathTo [ProgFile1] Search AllFixed Quietly
- [ProgPath2] := FullPathTo [ProgFile2] Origin=C:\VCA Quietly
-
-
- ;;**************************************************
- ;; Create the windows program group.
- ;;**************************************************
- ProgramManagerDDe
- CreateGroup([CompanyName])
- ReplaceItem([CompanyName])
- DeleteItem([ProductName])
- AddItem([ProgPath],[ProductName],[IconPath])
- DeleteItem([ProductName1])
- AddItem([ProgPath1],[ProductName1])
- DeleteItem([ProductName2])
- AddItem([ProgPath2],[ProductName2])
- DeleteItem([ReadFile])
- AddItem([ReadPath],[ReadFile])
- EndProgramManagerDDE
-
-
-
-
- ;; Exit dialog box and messages
- Dialog
- [ProductName] installation is complete.
- Enjoy!
- EndDialog
-
- Dialog PressAKey WhiteOnBrown
-
- Thanks again and best wishes. You'll find new
- information in file VCAREAD.WRI
-
- EndDialog
-
- EndScript
-